import {http} from "@/api/index";

const movieShow = {
    getMovieShowList:'/movieShow/findAll',
    addMovieShow:'/movieShow/add',
    logicDeleteMovieShowById:'/movieShow/delete',
    updateMovieShow:'/movieShow/update',
    getMovieShowSelectMap:'/movieShow/findSelectMap',
    queryMovieShowLike:'/movieShow/queryMovieShowLike'
}
export const getMovieShowList = ()=>{
    return http.request({
        url:movieShow.getMovieShowList,
        method:'get',
    })
}
export const queryMovieShowLike = (param)=>{
    return http.request({
        url:movieShow.queryMovieShowLike,
        method:'get',
        params:{
            movieShowLike:param
        }
    })
}
export const getMovieShowSelectMap = ()=>{
    return http.request({
        url:movieShow.getMovieShowSelectMap,
        method:'get',
    })
}

export const addMovieShow = (params)=>{
    return http.request({
        url:movieShow.addMovieShow,
        method:'post',
        data:params
    })
}

export const logicDeleteMovieShowById = (movieShowId)=>{
    return http.request({
        url:movieShow.logicDeleteMovieShowById,
        method:'get',
        params:{
            movieShowId:movieShowId
        }
    })
}
export const updateMovieShow = (params)=>{
    return http.request({
        url:movieShow.updateMovieShow,
        method:'post',
        data:params
    })
}

